package com.un.ebs.core.exception;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 租户已过期
 */
public class BusinessTenantExpirationException extends RuntimeException {
    public BusinessTenantExpirationException(Date endDate){
        super(String.format("租户已经于 %s 过期，请续期后再使用。", new SimpleDateFormat("yyyy年MM月dd日").format(endDate)));
    }
}
